<?php
/*
 * This is a part of genetic consulting.
 */
$rp = $_SERVER['REQUEST_URI'];
?>
<head>
    <style>
        #dl{padding: .4em 1em .4em 20px;text-decoration: none;position: relative;}
    </style>
</head>
<script>
    $(function(){
       
        $('#dl').click(function(){
            $('#dialog').dialog('open');
            return false;
        });
       
        $('#dialog').dialog({
            width : 400,
            height : 250,
            modal : true,
            autoOpen : false,
            buttons: {                      
                      
            }
        });
      

    });
</script>

<p>The decision to start a family is an exciting one. There is joy, expectations, and dreams. There may also be anxiety. Whether it is due to family history of a genetic disorder, or because the pregnancy is not happening as soon as you may like, a genetic consultation may be beneficial. </p>

<p>Chromosomal or genetic studies may shed light on personal risk factors or your ability to conceive. A detailed Genetic Risk Assessment may provide insight to future pregnancy risks for your or your extended family. Ask your doctor how genetic testing may provide insight into your situation. </p>

<p>Individuals with the following history may benefit from a preconception consultation: 
<ul>
    <li>Those with a family history of a genetic disorder</li>
    <li>Women who have recurrent miscarriages or a history of neonatal or infant death.</li>
    <li>Women with premature ovarian failure</li>
    <li>Males with oligospermia or azoospermia</li>
    <li>Males with congenital bilateral or unilateral absence of the vas deferens</li>
    <li>Ovum/sperm donors or recipients</li>
    <li>Those seeking Preimplantation Genetic Diagnosis (PGD)</li>
</ul>
</p>
<p>While much still remains unknown about the genetic basis of fertility, technological and molecular advances in the last twenty years have provided insight and success into delivering healthy babies. </p>

<center><p><a href="#" id="dl" class="ui-state-default ui-corner-all">Upload Your Documents</a></p></center>
<div id="dialog" title="Upload Documents"  >
    <p>
    <form enctype="multipart/form-data" action="../../plugins/upload_file.php" method="POST">
        <input type="hidden" name="MAX_FILE_SIZE" value="100000000000" />
<!--        <input type="hidden" name="path" value="../storage/pre-pregnancy/" />-->
        <input type="hidden" name="rp" value="<?php echo $rp; ?>" />
        <input type="hidden" name="mdir" value="pre-pregnancy" />
        <input type="hidden" name="bid" value="<?=$_COOKIE['bid']?>" />        
        <input type="hidden" name="attr" value="Genetic Consulting"/>
        <input type="file" name="uploadedfile" required />        
        <input type="submit" value="Upload File" />
    </form>

</p>
</div>
<?php
if ($_GET['s'] == y) {
    ?>
    <script>
        $(function(){
                
            $('#dl0').dialog({
                width : 200,
                modal : true
            });

        });
    </script>
    <div id="dl0" title="Successfull">
        <p>SuccessFull</p>
    </div>
    <?php
} elseif ($_GET['s'] == n) {
    ?>
    <script>
        $(function(){
                
            $('#dl00').dialog({
                width : 200,
                modal : true
            });

        });
    </script>
    <div id="dl00" title="Unsuccessful">
        <p>Opps...!!! Got some error :( <br/> Try Again...</p>
    </div>
<?php } ?>